package com.bupt.dto.service;

import com.bupt.dto.network.Node;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode
@Data
public class ServiceDto {
    private String id;
    private String name;
    private Node sourceNode;
    private Node targetNode;
    private Integer year;
    private Double bandwidth;
    private String type;
    private String layer;
    private String protect;
    private Integer protectLimit;
    private String[] nodeMust;
    private String status;
    private String reason;

    public ServiceDto(String id, String name, Node sourceNode, Node targetNode, Integer year, Double bandwidth,
                      String type, String layer, String protect, Integer protectLimit, String[] nodeMust,String status,String reason) {
        this.id = id;
        this.name = name;
        this.sourceNode = sourceNode;
        this.targetNode = targetNode;
        this.year = year;
        this.bandwidth = bandwidth;
        this.type = type;
        this.layer = layer;
        this.protect = protect;
        this.protectLimit = protectLimit;
        this.nodeMust = nodeMust;
        this.reason=reason;
        this.status=status;
    }
}
